package com.ruoyi.his.service.impl;

import com.ruoyi.his.domain.TMedicalDrugsInventoryRecord;
import com.ruoyi.his.mapper.TMedicalDrugsInventoryRecordMapper;
import com.ruoyi.his.service.ITMedicalDrugsInventoryRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 盘点记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-10
 */
@Service
public class TMedicalDrugsInventoryRecordServiceImpl implements ITMedicalDrugsInventoryRecordService
{
    @Autowired
    private TMedicalDrugsInventoryRecordMapper tMedicalDrugsInventoryRecordMapper;

    /**
     * 查询盘点记录
     * 
     * @param recordid 盘点记录主键
     * @return 盘点记录
     */
    @Override
    public TMedicalDrugsInventoryRecord selectTMedicalDrugsInventoryRecordByRecordid(Long recordid)
    {
        return tMedicalDrugsInventoryRecordMapper.selectTMedicalDrugsInventoryRecordByRecordid(recordid);
    }

    /**
     * 查询盘点记录列表
     * 
     * @param tMedicalDrugsInventoryRecord 盘点记录
     * @return 盘点记录
     */
    @Override
    public List<TMedicalDrugsInventoryRecord> selectTMedicalDrugsInventoryRecordList(TMedicalDrugsInventoryRecord tMedicalDrugsInventoryRecord)
    {
        return tMedicalDrugsInventoryRecordMapper.selectTMedicalDrugsInventoryRecordList(tMedicalDrugsInventoryRecord);
    }

    /**
     * 新增盘点记录
     * 
     * @param tMedicalDrugsInventoryRecord 盘点记录
     * @return 结果
     */
    @Override
    public int insertTMedicalDrugsInventoryRecord(TMedicalDrugsInventoryRecord tMedicalDrugsInventoryRecord)
    {
        return tMedicalDrugsInventoryRecordMapper.insertTMedicalDrugsInventoryRecord(tMedicalDrugsInventoryRecord);
    }

    /**
     * 修改盘点记录
     * 
     * @param tMedicalDrugsInventoryRecord 盘点记录
     * @return 结果
     */
    @Override
    public int updateTMedicalDrugsInventoryRecord(TMedicalDrugsInventoryRecord tMedicalDrugsInventoryRecord)
    {
        return tMedicalDrugsInventoryRecordMapper.updateTMedicalDrugsInventoryRecord(tMedicalDrugsInventoryRecord);
    }

    /**
     * 批量删除盘点记录
     * 
     * @param recordids 需要删除的盘点记录主键
     * @return 结果
     */
    @Override
    public int deleteTMedicalDrugsInventoryRecordByRecordids(Long[] recordids)
    {
        return tMedicalDrugsInventoryRecordMapper.deleteTMedicalDrugsInventoryRecordByRecordids(recordids);
    }

    /**
     * 删除盘点记录信息
     * 
     * @param recordid 盘点记录主键
     * @return 结果
     */
    @Override
    public int deleteTMedicalDrugsInventoryRecordByRecordid(Long recordid)
    {
        return tMedicalDrugsInventoryRecordMapper.deleteTMedicalDrugsInventoryRecordByRecordid(recordid);
    }
}
